<extend name="../layout" />

<block name="main_content">
    <include file="Common:SettingsHeader:baseData" />
    <div class="widget-box">
        <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
            <h5>{:L('edit_goods')}</h5>
            <a href="{:U('index')}" class="label label-info">{:L('go_back')}</a>
        </div>
        <div class="widget-content nopadding">
            <form class="form-horizontal" method="post" action="__URL__/update">
                <div class="control-group">
                    <label class="control-label">{:L('category')}</label>
                    <div class="controls">
                        <html:select options="theCategories" name="goods_category_id" selected="vo[goods_category_id]" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">{:L('goods_name')}</label>
                    <div class="controls">
                        <input type="text" name="name" id="name" required="" value="{$vo.name}" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">{:L('price')}</label>
                    <div class="controls">
                        <input type="text" name="price" id="price" required="" value="{$vo.price}" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">{:L('factory_code')}</label>
                    <div class="controls">
                        <input type="text" name="factory_code" id="factory_code" required=""  value="{$vo.factory_code}" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">{:L('store_min')}</label>
                    <div class="controls">
                        <input type="text" name="store_min" id="store_min" required="" value="{$vo.store_min}" />
                    </div>
                </div>
                <div class="form-actions">
                    <input type="hidden" name="id" value="{$vo.id}" />
                    <input type="button" value="{:L('go_back')}" onclick="javascript:history.go(-1);" class="btn">
                    <input type="submit" value="{:L('submit')}" class="btn btn-success">
                </div>
            </form>
        </div>
    </div>
</block>